package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 报销
 * @author xuejingtai
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("报销")
public class ChaimEntity implements Serializable {
    /**
     * 报销主键
     */
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;
    /**
     * 申请人用户id
     */
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long uId;
    /**
     * 报销申请人
     */
    private String chaimPeople;
    /**
     * 报销日期
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date chaimDate;

    /**
     * 所属部门
     */
    private String deptName;

    /**
     * 申请总金额
     */
    private double chaimMoney;
    /**
     * 申请编号
     */

    private String chaimCode;

    /**
     * 申请状态
     */
    private Integer chaimStatus;

    /**
     * 备注
     */
    private String chaimComment;

}
